package Test.Bean;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 使用@ConfigurationProperties注解来声明是一个注解类子组件
 * 利用@EnableConfigurationProperties，在MyConfig中放入IOC中
 */
@ConfigurationProperties(prefix = "presome")
public class ThirdBean {
    private String params = "";

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    @Override
    public String toString(){
        return this.params;
    }
}
